package com.marry.mybatis;

/**
 * @author ml
 * @create 2017-11-07--15:29
 */
public class test {

    public static void main(String[] args) {
        start();
    }

    public static void start(){

        MySqlSession sqlSession=new MyDefaultSqlSession();

        UserMapper userMapper=sqlSession.getMapper(UserMapper.class);

        User user=userMapper.findUserByUsername("admin");

        System.out.println(user);

    }
}
